<?php
	
class Table_Parametres extends Zend_Db_Table_Abstract
{
    protected $_name    = 'parametres';
    protected $_primary = array('LOGIN','PASSWD');
    protected $_sequence = FALSE;
	
	
	public function getAllLogin()
	{
		$req= $this
    	->select()
		->from($this, array('LOGIN'));
		return $this->fetchAll($req);   	
    }
	
	public function getMdp($login)
	{
		$req= $this
    	->select()
		->where('LOGIN= ?', $login);
		return $this->fetchRow($req);
	}
	

	public function getPasswd()
	{
		return $this-> fetchRow($this
			->select()
			->from($this, array('PASSWD'))
		
			);
	}
	
}
